package com.zhai.boot.domain.table;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zhai.boot.domain.table.base.BaseTable;
import lombok.Data;
import org.apache.ibatis.type.Alias;

/**
 * @package: com.zhai.boot.domain.table
 * @project-name: zhai-boot
 * @description: Demo 表 实体
 * @author: Created by 翟凤玺
 * @create-datetime: 2018-7-20 15:17
 */
@Data
@Alias("demo")
public class DemoTable extends BaseTable {
    /** 编号 */
    private String code;
    /** json串  @JsonIgnore 注解可以把从数据库查出的结果由json字符串转成json对象*/
    @JsonIgnore
    private String demoJson;

    public static final String AUTO_ID = "id:demo";

    public static final String AUTO_CODE = "code:demo";

    public static final String AUTO_CODE_PREFIX = "D";
}
